package com.haoke.buyaction.message.consumer.dao.impl;

import com.haoke.buyaction.message.consumer.dao.OrderDao;
import com.haoke.pojo.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Repository;

/**
 * @author yue13
 */
@Repository
public class OrderDaoImpl implements OrderDao {
    @Autowired
    private MongoTemplate mongoTemplate;

    /**
     * 订单信息保存
     *
     * @param order
     */
    @Override
    public void save(Order order) {
        mongoTemplate.save(order);

    }
}
